const path = require('path');
module.exports = {


  // baseUrl: '/',
  devServer: {
    disableHostCheck: true,
    port: 80,
    // https: true,
    // 配置代理
    proxy: {
      '/Origin': {
        target: 'http://zycp.onebity.com/', // 不代理时注释代理配置 否则项目无法启动
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/Origin': '/'
        }
      }
    }
  },
  lintOnSave :false,
  outputDir: process.env.NODE_OUTPUT_DIR,
    pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      patterns: [
        path.resolve(__dirname, './src/assets/css/variable.less'),
      ],
    }
  },
  productionSourceMap: false,
  // 增加jq
  configureWebpack: {
    plugins: [],
    // 打包忽略
    externals: {},
  },
}
